package com.example.administrator.myapplication.tools;


import com.loopj.android.http.TextHttpResponseHandler;

import org.apache.http.Header;

/**
 * Created by YAN on 15/9/21.
 */
public abstract class NetCallBackTxt extends TextHttpResponseHandler {


    @Override
    public void onStart() {
        onMyStart();
    }

    @Override
    public void onSuccess(int i, Header[] headers, String s) {

        onMySuccess(s);
    }

    @Override
    public void onFailure(int i, Header[] headers, String s, Throwable throwable) {

        onMyFailure(throwable);
    }




    public abstract void onMySuccess(String result);

    public abstract void onMyFailure(Throwable result);

    public abstract void onMyStart();
}
